import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index.vue'
import FilledTable from "../views/students/FilledTable.vue"
import PublishTable from "../views/teachers/PublishTable.vue"
import CheckWriteRecord from "../views/teachers/CheckWriteRecord.vue"
import Login from "../views/Login.vue"
import ForgetPwd from "../views/ForgetPwd.vue"
import ChangeEmail from "../views/ChangeEmail.vue"
import MyCollection from "../views/MyCollection.vue"
import StayWriteTable from "../views/students/StayWriteTable.vue"
import TeacherRevise from "../views/teachers/TeacherRevise.vue"

import TeacherRelease from "../views/teachers/TeacherRelease.vue"
import TeacherDetails from "../views/teachers/TeacherDetails.vue"
import StudentsDetails from "../views/students/StudentsDetails.vue"
import StudentsApplication from "../views/students/StudentsApplication.vue"
import StudentsCheckWrite from "../views/students/StudentsCheckWrite.vue"



Vue.use(VueRouter)

const routes = [{
  path: "/",
  name: Login,
  component: Login
},
{
  path: "/index",
  name: Index,
  component: Index
},
{
  path: "/stayWriteTable",
  name: StayWriteTable,
  component: StayWriteTable
},
{
  path: "/forgetPwd",
  name: ForgetPwd,
  component: ForgetPwd
},
{
  path: "/changeEmail",
  name: ChangeEmail,
  component: ChangeEmail
},
{
  path: "/filledTable",
  name: FilledTable,
  component: FilledTable
},
{
  path: "/myCollection",
  name: MyCollection,
  component: MyCollection
},
{
  path: "/publishTable",
  name: PublishTable,
  component: PublishTable
},
{
  path: "/checkWriteRecord",
  name: CheckWriteRecord,
  component: CheckWriteRecord
},
{
  path: "/teacherRevise",
  name: TeacherRevise,
  component: TeacherRevise
},
{
  path: "/teacherRelease",
  name: TeacherRelease,
  component: TeacherRelease
},
{
  path: "/teacherDetails",
  name: TeacherDetails,
  component: TeacherDetails
},
{
  path: "/studentsDetails",
  name: StudentsDetails,
  component: StudentsDetails
},
{
  path: "/fillHistory",
  name: StudentsCheckWrite,
  component: StudentsCheckWrite
},
{
  path: "/studentsApplication",
  name: StudentsApplication,
  component: StudentsApplication
}

]

const router = new VueRouter({
  routes
})

export default router